home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / compile next >
Encoding:
AmigaDOS Script File  |  1993-11-18  |  2.1 KB  |  101 lines

  1. .key DEST,INCLUDE/K,NETLIB/K,TARGET/K,INSTALL/S,ALL/S,APPL/S,AMITCP/S,DEVS/S,UTIL/S
  2. ;;; $Id: compile,v 1.6 1993/11/19 02:11:10 ppessi Exp $
  3. ;;;
  4. ;;; Compile AmiTCP distribution with SAS C
  5. ;;;
  6. ;;; Copyright (c) 1993 AmiTCP-Group, <AmiTCP-Group@hut.fi>
  7. ;;;                    Helsinki University of Technology, Finland.
  8. ;;;
  9. ;;; Created      : Thu Oct 14 01:59:00 1993 ppessi
  10. ;;; Last modified: Fri Nov 19 03:14:57 1993 ppessi
  11. ;;;
  12. ;;; $Log: compile,v $
  13. ;;; Revision 1.6  1993/11/19  02:11:10  ppessi
  14. ;;; quit -> echo
  15. ;;;
  16. ;;; Revision 1.5  1993/11/17  12:58:02  ppessi
  17. ;;; Implemented the APPL, AMITCP, UTIL and DEVS flags.
  18. ;;; Removed netlib compilation
  19. ;;;
  20. ;;; Revision 1.4  1993/11/15  12:06:40  ppessi
  21. ;;; Added TARGET/K, now really *using* INSTALL/S
  22. ;;;
  23. ;;; Revision 1.3  1993/10/23  01:19:06  ppessi
  24. ;;; Added -k flag to smake
  25. ;;;
  26. ;;; Revision 1.2  1993/10/14  00:02:04  ppessi
  27. ;;; Added devs and appl directories, renamed src to amitcp.
  28. ;;; Added install targets, DEST and INCLUDE directories.
  29. ;;;
  30. ;;;
  31. .bra {
  32. .ket }
  33. .def DEST "AmiTCP:"
  34.  
  35. If NOT {NETLIB$IsNotGiven} EQ IsNotGiven
  36.     If Exists {NETLIB> 
  37.     Assign netlib: {NETLIB}
  38.     Endif
  39. Else
  40.     Assign Netlib: exists > nil:
  41.     If WARN 
  42.     echo "The NETLIB: does not exist"
  43.     echo "Can't continue"
  44.     quit
  45.     Endif
  46. Endif
  47.  
  48. If NOT {INCLUDE$IsNotGiven} EQ IsNotGiven
  49.     If Exists "{INCLUDE}" 
  50.     assign netinclude: {INCLUDE}
  51.     ENDIF
  52. Else
  53.     Assign Netinclude: exists > nil:
  54.     If WARN 
  55.     echo "The NETINCLUDE: does not exist"
  56.     echo "Can't continue"
  57.     quit
  58.     Endif
  59. ENDIF
  60.  
  61. Set APPL={APPL$X}
  62. Set AMITCP={AMITCP$X}
  63. Set DEVS={DEVS$X}
  64. Set UTIL={UTIL$X}
  65.  
  66. If NOT {ALL$X} EQ X 
  67.     Set APPL=APPL
  68.     Set AMITCP=AMITCP
  69.     Set DEVS=DEVS
  70.     Set UTIL=UTIL
  71. Endif
  72.  
  73. IF $APPL EQ APPL
  74.     echo Make applications
  75.     cd appl
  76.     smake -k DEST={DEST} {target}  {install}
  77.     cd /
  78. Endif
  79.  
  80. IF $AMITCP EQ AMITCP
  81.     echo Make protocol stack
  82.     cd amitcp
  83.     smake gst
  84.     smake -k DEST={DEST} {target}  {INSTALL}
  85.     cd /
  86. Endif
  87.  
  88. If $DEVS EQ DEVS
  89.     echo Make network utilities
  90.     cd util
  91.     smake -k DEST={DEST} {target}  {INSTALL}
  92.     cd /
  93. Endif
  94.  
  95. If $UTIL EQ UTIL
  96.     echo Make network devices
  97.     cd devs
  98.     smake -k DEST={DEST} {target}  {INSTALL}
  99.     cd /
  100. Endif
  101.